package com.ccepc.service
{
	import com.ccepc.dto.User;
	import com.ccepc.remote.BaseService;
	import com.ccepc.remote.IInvokeResponder;
	
	public class UserService extends BaseService
	{
		public function UserService()
		{
			super("userManager");
		}
		
		private static var _instance:UserService;
		
		public static function getInstance():UserService 
		{
			if(_instance == null) 
			{
				_instance = new UserService;
			}
			return _instance;
		}
		
		public static function hello(name:String):IInvokeResponder
		{
			return getInstance().invoke("hello",name);
		}
		
		public static function login(userName:String,password:String):IInvokeResponder
		{
			return getInstance().invoke("login",userName,password);
		}
		
		public static function getUserModulePermissions(user:User):IInvokeResponder
		{
			return getInstance().invoke("getUserModulePermissions",user);
		}
	}
}